<%--
  Created by IntelliJ IDEA.
  User: 11507
  Date: 2019/6/20
  Time: 23:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String id = request.getParameter("id");     // 接收id
    String name = request.getParameter("name");
    String age = request.getParameter("year");
    String sex = request.getParameter("sex");
    String palce = request.getParameter("place");
    String major = request.getParameter("major");
    String myclass = request.getParameter("class");
    String nation = request.getParameter("nation");
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="container">
    <%@include file="template/header.jsp" %>
    <h2>修改信息</h2>
    <h4>修改
        <%
            System.out.println(name);
        %>
        的信息为：</h4>

    <form action="alterStu_2.jsp">
        <div class="form-group">
            <label>学号</label>
            <input id="inputId" name="id" type="" value=<%out.print(id);%> class="form-control" placeholder="输入学生学号">
        </div>
        <div class="form-group">
            <label>姓名</label>
            <input name="name" type="" value=<%out.print(name);%> class="form-control" placeholder="输入学生姓名">
        </div>
        <div class="form-group">
            <label>年龄</label>
            <input name="age" type="" value=<%out.print(age);%> class="form-control" placeholder="输入学生姓名">
        </div>
        <div class="form-group">
            <label>性别</label>
            <input name="sex" type="" value=<%out.print(sex);%> class="form-control" placeholder="输入学生姓名">
        </div>
        <div class="form-group">
            <label>籍贯</label>
            <input name="mypalce" type="" value=<%out.print(palce);%> class="form-control" placeholder="输入学生籍贯">
        </div>
        <div class="form-group">
            <label>专业</label>
            <input name="major" type="" value=<%out.print(major);%> class="form-control" placeholder="输入学生专业">
        </div>
        <div class="form-group">
            <label>班级</label>
            <input name="myclass" type="" value=<%out.print(myclass);%> class="form-control" placeholder="输入学生班级">
        </div>
        <div class="form-group">
            <label>民族</label>
            <input name="nation" type="" value=<%out.print(nation);%> class="form-control" placeholder="输入学生民族">
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
    </form>
    <%@include file="template/footer.jsp" %>
</div>
<%@include file="template/link.jsp" %>
<script>
    $("#inputId").attr("readonly", true);
</script>
</body>
</html>
